@import './base.css';

/* 移动端适配 */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f8f8f8;
}

#app {
  height: 100%;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* 防止iOS滚动回弹 */
.safe-area {
  padding-bottom: env(safe-area-inset-bottom);
}

/* 移动端滚动优化 */
.scroll-container {
  -webkit-overflow-scrolling: touch;
}

/* 移动端按钮优化 */
.mobile-button {
  -webkit-appearance: none;
  border: none;
  outline: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* 移动端输入框优化 */
.mobile-input {
  -webkit-appearance: none;
  border-radius: 0;
}

/* 隐藏滚动条 */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
